﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using FreeProperty.Data;
namespace FreeProperty
{
    public partial class ErrorMessage : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (null != Session[FreePropertyConstants.SESSION_EXCEPTION])
            {
                Exception ex = (Exception)Session[FreePropertyConstants.SESSION_EXCEPTION];
                lblError.Text = "Following error occured :- "+ex.GetBaseException().Message;
            }
            else
            {
                lblError.Text = "A system error occured. ";
            }
    
        }
    }
}